﻿<UserControl x:Class="GTServices.WPF.Client.Views.Entities.TemplateView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel LastChildFill="True">
        <StackPanel DockPanel.Dock="Top">
            <UniformGrid Columns="2" Rows="1" IsEnabled="False">
                <StackPanel></StackPanel>
                <GroupBox Header="Id">
                    <TextBox Text="{Binding Template.Id}" HorizontalContentAlignment="Right"/>
                </GroupBox>
            </UniformGrid>
            <GroupBox Header="Name">
                <TextBox Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" />
            </GroupBox>
        </StackPanel>
        <TextBox AcceptsReturn="True" Text="{Binding Template.RawTemplate, UpdateSourceTrigger=PropertyChanged}" />
    </DockPanel>
</UserControl>
